﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyNhaSach.usercontrol
{
    public partial class HeThong : UserControl
    {
        public HeThong()
        {
            InitializeComponent();
        }

        private void btnDangNhapLai_Click(object sender, EventArgs e)
        {
            frmLogin frm = new frmLogin();
            frm.Show();
            this.Parent.Parent.Hide();
        }

        private void btnThongTin_Click(object sender, EventArgs e)
        {
            ThongTin frm = new ThongTin();
            pnDataHeThong.Controls.Clear();
            pnDataHeThong.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void btnNgonNgu_Click(object sender, EventArgs e)
        {
            NgonNgu frm = new NgonNgu();
            pnDataHeThong.Controls.Clear();
            pnDataHeThong.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }
    }
}
